FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI += " file://0001-modify-host-state-manager-for-power-control.patch "
SRC_URI += " file://host_power_on.sh "
SRC_URI += " file://host_power_off.sh "
SRC_URI += " file://host_power_cycle.sh "
SRC_URI += " file://host_pgood.sh "


RDEPENDS:${PN} += "bash"

inherit obmc-phosphor-systemd

do_install:append() {
    install -d ${D}/usr/bin
    install -m 0755 ${WORKDIR}/host_power_on.sh ${D}/usr/bin/host_power_on.sh
    install -m 0755 ${WORKDIR}/host_power_off.sh ${D}/usr/bin/host_power_off.sh
    install -m 0755 ${WORKDIR}/host_power_cycle.sh ${D}/usr/bin/host_power_cycle.sh
    install -m 0755 ${WORKDIR}/host_pgood.sh ${D}/usr/bin/host_pgood.sh
}
